package com.geovis.emergency.spd.entity.pc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.geovis.emergency.spd.entity.basic.entity.BaseSpdEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

/**
 * <p>
 * 应急预案指挥模块 - 预案组织架构
 * </p>
 *
 * @author Lonsho
 * @since 2022-07-11
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("pc_plan_duty_org")
@ApiModel(value = "PcPlanDutyOrg对象", description = "应急预案指挥模块 - 预案组织架构")
public class PcPlanDutyOrg extends BaseSpdEntity {

    @ApiModelProperty("预案id")
    private String pcPlanId;

    @ApiModelProperty("父主键")
    private String parentId;

    @ApiModelProperty("架构名")
    private String orgName;

    @ApiModelProperty("架构全称")
    private String fullName;

    @ApiModelProperty("排序下标")
    private Long idx;

    @ApiModelProperty("remark")
    private String remark;

    @ApiModelProperty("祖级列表")
    private String ancestors;

    @ApiModelProperty("角色ids")
    private String roleIds;

    @ApiModelProperty(value = "职责")
    @Length(max = 2000, message = "职责最长不能超过{2000}个字符")
    private String duty;

}
